@include('home.model.header')
     <div ng-show="!loading &amp;&amp; !searchEnv" class="shopmenu-nav ng-isolate-scope" sticky="" sticky-class="sticky" sticky-body-class="shopmenu-nav-sticky" sticky-fn="shopNavSticky">
      @foreach($type as $key => $value)
      <!-- ngRepeat: category in categorys -->
      <a href="javascript:" ng-repeat="category in categorys" ng-click="scrollToCategory(category)" ng-class="{active: currentCategory.id === category.id}" class="ng-binding ng-scope">{{$value->typename}}</a>
       @endforeach
      <!-- end ngRepeat: category in categorys --> 
      <!-- end ngRepeat: category in categorys -->
     </div> 
      @foreach($res as $key => $value)
     <div ng-show="!loading" class="shopmenu-main grid" ng-class="{grid: displayType === 'grid', list: displayType === 'list'}">
      <!-- ngIf: filterData === 'default' && !searchEnv --> 
      <div ng-if="filterData === 'default' &amp;&amp; !searchEnv" class="ng-scope">
       <!-- ngRepeat: category in categorys -->
       <div class="shopmenu-list clearfix ng-scope" ng-repeat="category in categorys"> 
        <h3 class="shopmenu-title ng-binding">{{$key}}<span class="shopmenu-des ng-binding">大家喜欢吃，才叫真好吃。</span></h3>
        <!-- ngRepeat: food in category.foods --> 
         @foreach($value as $k => $v)
        <div class="shopmenu-food ng-isolate-scope" ng-class="{noimg: !food.image_path}" id="626104394" ng-repeat="food in category.foods" shop-menu-item="" food="food" shop="shopCache">
         <!-- ngIf: food.image_path -->
        
         <span class="col-1 ng-scope" ng-if="food.image_path"><a href="javascript:" ng-click="showInfo(food)"><img src="{{$v->logo}}" /><input type="hidden" value="{{$v->id}}"></a></span>
         <!-- end ngIf: food.image_path -->
         <div class="col-2 shopmenu-food-main">
          <h3 class="shopmenu-food-name ui-ellipsis ng-binding">{{$v->goodsname}}</h3>
          <p class="color-mute ui-ellipsis ng-binding" tooltip="单个狮子头">{{$v->describe}}</p>
          <p></p>
          <div class="starrating icon-star ng-isolate-scope" title="评分4.2分" rate-star="" rating="food.rating">
           <span class="icon-star" ng-style="{ width: (rating * 20) + '%' }" style="width: 84.8%;"></span>
          </div> 
          <span class="color-mute ng-binding">(29)</span> 
          <span class="color-mute ng-binding">月售228份</span>
          <p></p>
         </div>
         <span class="col-3 shopmenu-food-price color-stress ng-binding">{{$v->price}}<small class="ng-binding"></small></span> 
         <span class="col-4">
          <div shop-cartbutton="" food="food" ng-hide="shop.id == '656683'" class="ng-isolate-scope">
           <!-- ngIf: !menuFood.hasSpec -->
           <div ng-if="!menuFood.hasSpec" class="ng-scope">
            <!-- ngIf: !cartItem.quantity && menuFood.stock -->
            <button class="shop-cartbutton ng-binding ng-scope" ng-if="!cartItem.quantity &amp;&amp; menuFood.stock" ng-click="cartItem.add($event)">加入购物车</button>
            <!-- end ngIf: !cartItem.quantity && menuFood.stock --> 
            <!-- ngIf: !menuFood.stock -->
            <!-- ngIf: cartItem.quantity > 0 || cartItem.quantity === '' -->
           </div>
           <!-- end ngIf: !menuFood.hasSpec -->
           <!-- ngIf: menuFood.hasSpec -->
          </div></span>
        </div>
          @endforeach
        <!-- end ngRepeat: food in category.foods -->
       </div>
       @endforeach
       <!-- end ngRepeat: category in categorys --> 
       
       <!-- end ngRepeat: category in categorys -->
      </div>
      <!-- end ngIf: filterData === 'default' && !searchEnv -->
      <!-- ngIf: filterData !== 'default' || searchEnv -->
      <div shop-cart="" cart-link="cartLink" ng-hide="shopCache.id == 656683" class="ng-isolate-scope">
       <div class="shop-cart">
        <div class="shop-cartbasket" id="shopbasket" style="top: -44px; height: auto;">
         <div shop-groupswitcher="" cart="shopCart" class="ng-isolate-scope">
          <!-- ngIf: shopCart.vm.groups.length > 1 -->
          <div class="shop-grouphead single" ng-class="{ single: shopCart.vm.groups.length === 1 }">
           <!-- ngIf: shopCart.vm.groups.length === 1 -->
           <a href="javascript:" class="icon-cart-add ng-scope" ng-if="shopCart.vm.groups.length === 1" ng-click="addGroup()" tooltip="添加购物车"></a>
           <!-- end ngIf: shopCart.vm.groups.length === 1 -->
           <!-- ngIf: showGuide && shopCart.vm.groups.length === 1 -->
           <div class="shop-grouphead-row">
            <!-- ngIf: shopCart.vm.groups.length > 1 -->购物车 
            <a href="javascript:" ng-click="shopCart.clearGroup(shopCart.currentGroupIndex)">[清空]</a>
           </div>
          </div>
         </div>
         <!-- ngIf: !shopCart.vm.groups[shopCart.currentGroupIndex].length -->
         <div class="shop-cartbasket-empty ng-scope" ng-if="!shopCart.vm.groups[shopCart.currentGroupIndex].length">
          <div class="icon-cart"></div>
          <p>购物车是空的，赶紧选购吧</p>
         </div>
         <!-- end ngIf: !shopCart.vm.groups[shopCart.currentGroupIndex].length -->
         <!-- ngRepeat: item in shopCart.vm.groups[shopCart.currentGroupIndex] -->
         <!-- ngIf: shopCart.packingFee -->
        </div>
        <div class="shop-cartfooter" ng-click="shopCart.toggleCart()">
         <span class="icon-cart shop-carticon">
          <!-- ngIf: shopCart.vm.quantity > 0 --></span>
         <!-- ngIf: shopCart.vm.quantity > 0 -->
         <!-- ngIf: shopCart.vm.extras.length && !shopCart.vm.button.disabled -->
         <div class="shop-cartfooter-text extras ng-binding" ng-bind-html="shopCart.vm.picewiseText">
          配送费&yen;5
         </div>
         <button class="shop-cartfooter-checkout ng-binding disabled" ng-class="{disabled: shopCart.vm.button.name !== 'CAN_ORDER'}" ng-disabled="shopCart.vm.button.disabled" ng-bind="shopCart.vm.button.text" ng-click="checkout($event)" disabled="disabled">购物车是空的</button>
        </div>
        <div class="shop-carthelper-opener" ng-class="{show: shopCart.cartHelper.show}" ng-click="showCartHelper()"></div>
        <div class="shop-carthelper ng-isolate-scope" id="shophelper" shop-cart-helper="" group="shopCart.cartHelper.group" cart="shopCart">
         <div class="shopcarhelper-title clearfix">
          <span>凑一凑</span> 
          <em>轻松凑满起送价</em> 
          <a href="javascript:" ng-click="closeCartHelper()">[ 关闭 ]</a>
         </div>
         <div class="shopcarthelper-container ui-scrollbar-light">
          <!-- ngRepeat: item in group track by $index -->
         </div>
        </div>
        <div class="shop-flyitem"></div>
       </div>
      </div>
      <div class="dialog" role="dialog" dialog="ITEMINFO" style="display: none;">
       <div class="dialog-close icon-close"></div>
       <div class="dialog-content" ng-transclude="">
        <div shop-iteminfo="" item-info="itemInfo" class="ng-scope ng-isolate-scope">
         <div class="shop-iteminfo">
          <div class="iteminfo-imagegroup">
           <img class="mainimage" ng-src="" alt="的图片" />
           <div ng-show="imagesPath.length &gt; 1" class="ng-hide">
            <a href="javascript:" ng-click="showImageNext(-4)" class="imagegroup-ctrl icon-profile-left-arrow"></a>
            <ul class="imagelist">
             <!-- ngRepeat: imagePath in imagesPath track by $index -->
            </ul>
            <a href="javascript:" ng-click="showImageNext(4)" class="imagegroup-ctrl icon-profile-right-arrow"></a>
           </div>
          </div>
          <section class="iteminfo-info">
           <h5 ng-bind="itemInfo.name" class="ng-binding"></h5>
           <p ng-show="!!itemInfo.description" class="description ng-binding ng-hide" ng-bind="itemInfo.description"></p>
           <div class="iteminfo-cartitem">
            <div class="iteminfo-price">
             <span class="price"><span class="yen">&yen;</span> <span class="price ng-binding" ng-bind="(itemInfo.original_price || itemInfo.price) + (itemInfo.specfoods_id.length &gt; 1 ? '起' : '')"></span></span>
            </div>
            <!-- ngIf: itemInfo.name -->
           </div>
           <div class="iteminfo-rate">
            <!-- ngIf: ratingCount -->
            <ul class="rategroup">
             <!-- ngRepeat: item in ratePageContext.pageData -->
            </ul>
            <div pagination="" pagination-context="ratePageContext" pagination-pagesize="3" class=" pagination">
             <ul></ul>
            </div>
           </div>
          </section>
         </div>
        </div>
       </div>
      </div>
     </div>
    </div>
    <!-- end ngIf: shopAction === 'menu' -->
    <!-- ngIf: shopAction === 'rate' -->
    <!-- ngIf: shopAction === 'info' -->
   @include('home.model.right')
   
 @include('home.model.foot')